/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const categoryRouter = {
  path: '/adminh5/category',
  component: Layout,
  redirect: '/adminh5/category/list',
  name: 'category',
  meta: {
    title: 'category',
    icon: 'edit'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/adminh5/category/create'),
      name: 'CreateArticle',
      meta: { title: 'createCategory', icon: 'edit' }
    },
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/adminh5/category/edit'),
      name: 'EditArticle',
      meta: { title: 'editCategory', icon: 'edit' },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/adminh5/category/list'),
      name: 'ArticleList',
      meta: { title: 'categoryList', icon: 'list' }
    }
  ]
}
export default categoryRouter
